#ifndef VERTEX3D_H
#define VERTEX3D_H

#include <GL/gl.h>
#include <SDL/SDL.h>

class Vertex3D {

 private:
  GLdouble _pos[3];
  GLdouble _color[3];

 public:
  Vertex3D (const GLdouble pos[3],
	  const GLdouble color[3]);
  ~Vertex3D ();

  void handler (const SDL_Event& ev);
  void draw ();
  
  const GLdouble* position() const;
  GLdouble x() const;
  GLdouble y() const;
  GLdouble z() const;

  const GLdouble* color() const;
  GLdouble R() const;
  GLdouble G() const;
  GLdouble B() const;
};

#endif
